X86: implement PCID/INVPCID for hvm
authorLiu, Jinsong <jinsong.liu@intel.com>
Thu, 1 Dec 2011 11:24:06 +0000 (12:24 +0100)
committerLiu, Jinsong <jinsong.liu@intel.com>
Thu, 1 Dec 2011 11:24:06 +0000 (12:24 +0100)
commit7d3ada69de442c1a65f5f5686150f1ff1b6131bc
tree4e8204eb939bc5985961ef7ed7fa96a50f39c9a4
parentb0933946291cba0f47f288ad6eb22a3c69321091
X86: implement PCID/INVPCID for hvm

This patch handle PCID/INVPCID for hvm:

For hap hvm, we enable PCID/INVPCID, since no need to intercept
INVPCID, and we just set INVPCID non-root behavior as running natively;

For shadow hvm, we disable PCID/INVPCID, otherwise we need to emulate
INVPCID at vmm by setting INVPCID non-root behavior as vmexit.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vmx.h
xen/include/asm-x86/processor.h